package com.crm.dao.mapper.customMapper.trainingCustomManager;

import com.crm.model.qo.trainingManager.TrainingFormQO;
import com.crm.model.qo.trainingManager.TrainingQO;
import com.crm.model.vo.trainingManager.TrainingDetailVO;
import com.crm.model.vo.trainingManager.TrainingFormVO;
import com.crm.model.vo.trainingManager.TrainingVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 内训管理
 */
public interface TrainingCustomMapper {

    /**
     * 用户模块 -- 内训管理列表
     * @param trainingQO 查询条件
     * @param dateUnit 1上月 2本月
     * @param sortOrder 分组
     * @return
     */
    List<TrainingVO> selectTrainingList(@Param("trainingQO") TrainingQO trainingQO,@Param("dateUnit") Integer dateUnit,@Param("sortOrder") String sortOrder);

    /**
     * 内训详情-通过内训id查询内训详情
     * @param trainingId 内训id
     * @return
     */
    TrainingVO selectByTrainingId(@Param("trainingId") String trainingId);

    /**
     * 管理模块--内训线索池列表
     * @param trainingFormQO
     * @param dateUnit
     * @param sortOrder
     * @author yincuimei
     * @return
     */
    List<TrainingFormVO> selectTrainingFormVOList(@Param("trainingFormQO") TrainingFormQO trainingFormQO, @Param("dateUnit") Integer dateUnit, @Param("sortOrder") String sortOrder);

    /**
     * 管理模块-》内训线索池列表-》内训详情
     * @param trainingId --内训ID
     * @author yincuimei
     * @return
     */
    TrainingDetailVO selectTrainingDetailVOById(@Param("trainingId") String trainingId);
}
